package com.zh.web.domain.auth.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zh.web.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
@TableName("ls_user_role")
@ApiModel(value = "用户角色关联表")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserRole extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("角色编码")
    private Integer roleCode;

}

